Goto Location
#VSCodeの設定
editor.gotoLocation.multipleDeclarations
宣言へ移動
editor.gotoLocation.multipleDefinitions
定義へ移動
editor.gotoLocation.multipleImplementations
実装に移動
editor.gotoLocation.multipleReferences
参照へ移動
editor.gotoLocation.multipleTypeDefinitions
型定義へ移動
いずれも以下3つの値を取る
peek
複数候補がある場合に候補を表示する
https://i.gyazo.com/de5d72e8d9e3ba023aaff1c0b4852e6d.mp4
gotoAndPeek
複数候補がある場合に、一番上のやつに飛んだ後、候補を表示
goto
複数候補があっても、一番上のやつに飛ぶ
まあ、普通に
peek
で良くない?という感じはする
mrsekut.icon
参考
React コンポーネントの定義の仕方によって VSCode の定義元ジャンプの挙動が変わる - mizdra's blog